/* ------------
 * Bootstrap style
 * do not change the class name
--------------- */

body {
    font-size: 14px;
}

.g_main .page-header {
    margin-top: 0;
}

.navbar-fixed-top {
    border: 0;
}


/* ------------
 * global
--------------- */

.g_hidden {
    display: none;
}

.g_nav {
    border-radius: 0;
}

.g_main {
    padding: 20px;
}

@media (min-width: 768px) {
    .g_main {
        padding-right: 40px;
        padding-left: 40px;
    }
}


/* ------------
 * main-index
--------------- */

body.m_index {
    background: #e6e7e9;
}
.m_index_btn {
    width: 120px;
    margin-right: 10px;
}
@media (max-width: 768px) {
    .m_index_btn {
        width: 100px;
        margin-right: 5px;
    }
}
@media (max-width: 468px) {
    .m_index_btn {
        width: 80px;
        margin-right: 2px;
    }
}
@media (max-width: 370px) {
    .m_index_btn {
        width: 68px;
        font-size: 14px;
        text-align: center;
        margin-right: 2px;
    }
}
.m_index_footer {
    position:absolute;
    bottom: 0;
    height: 60px;
    margin-top: 40px;
    text-align: center;
}

.m_index_login-container-bg {
    width: 100%;
    height: 450px;
    background-image: url("../img/login_bg.jpg");
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}

.m_index_login-form {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    margin-top: 45px;
    padding: 30px 20px;
    background: #ffffff;
    border-radius: 5px;
    box-shadow: 0 5px 5px rgba(0, 0, 0, .2);
    opacity: .9;
}

@media (max-width: 640px) {
    .m_index_login-form {
        position: fixed;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        margin-top: 45px;
        padding: 30px 20px;
        background: #ffffff;
        border-radius: 5px;
        box-shadow: 0 5px 5px rgba(0, 0, 0, .2);
        opacity: .9;
    }
}


/* ------------
 * sub-index
--------------- */

body.m_sub-index {
    padding-top: 50px;
}

.m_sub-header {
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.m_sub_sidebar {
    display: none;
}

@media (min-width: 768px) {
    .m_sub_sidebar {
        position: fixed;
        top: 51px;
        bottom: 0;
        left: 0;
        z-index: 1000;
        display: block;
        padding: 20px;
        overflow-x: hidden;
        overflow-y: auto;
        /* Scrollable contents if viewport is shorter than content. */
        background-color: #f5f5f5;
        border-right: 1px solid #eee;
    }
}

.m_sub_nav-sidebar {
    margin-right: -21px;
    margin-bottom: 20px;
    margin-left: -20px;
}

.m_sub_nav-sidebar>li>a {
    padding-right: 20px;
    padding-left: 20px;
}

.m_sub_nav-sidebar>.active>a, .m_sub_nav-sidebar>.active>a:hover, .m_sub_nav-sidebar>.active>a:focus {
    color: #fff;
    background-color: #428bca;
}

.m_sub_avatar {
    margin-bottom: 20px;
}

.m_sub_nick-name {
    padding: 20px 0;
    font-weight: bold;
}

.m_sub_bottom-info {
    border-top: 1px dotted #eeeeee;
    padding: 10px 15px;
}

.m_sub_bottom-info button {
    margin-left: 5px;
}

.m_sub_search-btn {
    margin: 10px auto;
    text-align: center;
}
.m_sub_search-btn button {
    margin: 0 10px;
}
.m_sub_search-wrap {
    margin-bottom: 10px;
    border-bottom: 1px solid #eeeeee;
}
